<template lang="html">
  <div class="setting">
    <div class="banner12">
      <label id="fanhui" @click="back"><img src="../../static/img/return1.png" alt=""></label>
      <label>设置</label>
    </div>
    <div class="content">
      <div class="setting1">
        <div class="setting_name">
          <label>设置</label>
        </div>
        <div class="night">
          <label>夜间模式</label>
          <!-- <input type="checkbox" name="" value=""> -->
          <input type="checkbox" name="checkbox1" value="checkbox">
        </div>
        <div class="liuliang">
          <label>流量播放提醒</label>
          <input type="checkbox" name="" value="">
        </div>
        <div class="huancun">
          <label>清除缓存</label>
          <img src="../../static/img/right.png" alt="">
        </div>
      </div>
      <div class="fankui">
        <div class="fankuiname">
          <label>反馈</label>
        </div>
        <div class="yijian">
          <label>意见与反馈</label>
          <img src="../../static/img/right.png" alt="">
        </div>
        <div class="guanzhu1">
          <label>关注我们</label>
          <img src="../../static/img/right.png" alt="">
        </div>
        <div class="giveme">
          <label>给一个评分</label>
          <img src="../../static/img/right.png" alt="">
        </div>
      </div>
      <div class="guanyu">
        <div class="guanyuname">
          <label>关于</label>
        </div>
        <div class="userxie">
          <label>用户协议</label>
          <img src="../../static/img/right.png" alt="">
        </div>
        <div class="bnaben">
          <label>版本号</label>
          <span>4.3.4</span>
        </div>
      </div>
      <div class="liubi">
        <div class="liubainame">

        </div>
      </div>
      <div id="tuichu" v-show="deng">
        <div id="tui" >
          <label @click.prevent='ss()'>退出登录</label>
        </div>
      </div>
      <div class="tuijian">
        <div class="tuijianname">
          <label>推荐应用</label>
        </div>
      </div>
    </div>
    <div id="mess" v-show='shows'>
      <div class="box">
        <p>确定退出登录吗？</p>
        <label @click='queding()'>确定</label>
        <label @click='quxiao()'>取消</label>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data(){
      return{
        shows:false,
        deng:false
      }
  },
  methods:{
    back() {
        history.back()
    },
    ss(){
      this.shows=true;
    },
    queding(){
      localStorage.setItem('bao',0);
      this.$router.push({
        path:'/logins'
      })
    },
    quxiao(){
      this.shows=false;
    }
  },
  created(){
    if(localStorage.getItem('bao')==1){
      this.deng=true
    }
  }
}
</script>

<style media="screen">
body {
  margin: 0;
  padding: 0;
}
</style>

<style lang="css" scoped>
*{
  margin:0;
  padding:0;
  color: black;
}

.setting{
  height: 700px;
  position: relative;
  /*background: linear-gradient(to bottom,#562e37,#f17c67);*/
  background:white;
  /*color: white;*/
  }

  .banner12{
    height: 2.5rem;
    /*background: white;*/
    line-height: 2.5rem;
    color: #646a58;
    font-size: 1.8rem;
    width: 100%;
    position:fixed;
    top: 0rem;
    left: 0;
    z-index: 100;
    background: white;
    margin-top: 0;
  }
  #fanhui{
    position: absolute;
    height: 1.5rem;
    width: 0.9rem;
    /*background-image: url(../../static/img/return1.png);
    background-size: 15px,15px;*/
    top: 0.3rem;
    left: 0.9rem;
  }
  #fanhui>img{
    height: 1.5rem;
    width: 0.8rem;
  }
  .content{
    margin: 0 auto;
    margin-top: 3.0rem;
    width: 100%;
    text-align: right;
  }
  .setting>.content>div>div:first-of-type{
    height: 1.8rem;
    line-height: 1.8rem;
    background: #fbfbfb;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .content>div>div:nth-child(n+1){
    height: 3.0rem;
    line-height: 3.0rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-bottom: 1px solid #f9f5f5;
  }
  .content>div>div>label{
    float: left;
  }
  .content>div>div>img{
    width: 0.5rem;
    height: 1.2rem;
  }
  #tui{
    height: 3.0rem;
    line-height: 3.0rem;
    border-bottom: 1px solid #f9f5f5;
    background: white;
  }
  #mess{
    z-index: 200;
    height: 100%;
    width: 100%;
    background: rgba(128, 138, 135, 0.5);
    position: absolute;
    top: 0;
  }
  #mess>.box{
    width: 60%;
    height: 20%;
    margin: auto;
    background: white;
    position: absolute;
    top: 30%;
    left: 20%;
    border-radius: 15px;
    color:black;
    font-size: 2.5rem;
  }
  #mess>.box>p{
    margin: auto;
    margin-top: 1.0rem;
    margin-bottom: 3.0rem;
  }
  #mess>.box>label{
    display: inline-block;
    width: 6.0rem;
    height: 3rem;
    text-align: center;
    vertical-align: middle;
    background: #40e0d0;
    border-radius: 5px;
  }

</style>
